package com.tourism.service;

import com.github.pagehelper.PageInfo;
import com.tourism.entity.HotelOrder;
import com.tourism.entity.HotelOrderQuery;
import com.tourism.entity.OrderPayInfo;
import com.tourism.exception.GlobalException;

/**
 * @Description
 * @Author z
 * @Date 2021-05-01 9:15
 */
public interface HotelOrderService {
    /**
     * 新增酒店订单
     *
     * @param hotelOrder
     * @return
     */
    boolean addHotelOrder(HotelOrder hotelOrder) throws GlobalException;

    /**
     * 取消酒店订单
     *
     * @param id
     * @return
     */
    boolean deleteHotelOrder(Long id) throws GlobalException;

    /**
     * 根据id查找酒店订单
     *
     * @param id
     * @return
     */
    HotelOrder getHotelOrderById(Long id);


    /**
     * 分页查询酒店订单列表
     *
     * @param query
     * @return
     */
    PageInfo<HotelOrder> getHotelOrderList(HotelOrderQuery query);

    /**
     * 更新支付状态
     *
     * @param orderPayInfo
     * @return
     */
    boolean updateOrderPayInfo(OrderPayInfo orderPayInfo);
}
